package eric.mpab.business.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.flex.remoting.RemotingDestination;
import org.springframework.stereotype.Service;

import eric.mpab.business.AccountService;
import eric.mpab.dal.AccountRepository;
import eric.mpab.model.Account;

@RemotingDestination
@Service("accountService")
public class AccountServiceImpl implements AccountService {
	@Autowired
	private AccountRepository accountRepository;

	public List<Account> getAllAccounts() {
		return accountRepository.getAllAccounts();
	}

}
